package org.tinygroup.flow.config;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("subflow")
public class SubFlow implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5467875047887794167L;
	@XStreamAsAttribute
	private String id;
	private List<Node> nodes;// 子流程节点	
	@XStreamAsAttribute
	@XStreamAlias("start-with")
	private String startWith;
	@XStreamAsAttribute
	@XStreamAlias("end-with")
	private String endWith;
	
	public List<Node> getNodes() {
		return nodes;
	}
	public void setNodes(List<Node> nodes) {
		if(nodes==null){
			this.nodes =new ArrayList<Node>();
		}else{
			this.nodes = nodes;
		}
		
	}
	public String getStartWith() {
		return startWith;
	}
	public void setStartWith(String startWith) {
		this.startWith = startWith;
	}
	public String getEndWith() {
		return endWith;
	}
	public void setEndWith(String endWith) {
		this.endWith = endWith;
	}
	
	
}
